package de.tum.in.eist.poll.pub.service;

import java.util.NoSuchElementException;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

import de.tum.in.eist.poll.pub.shared.LecturePush;
import de.tum.in.eist.poll.pub.shared.TimeoutException;
import de.tum.in.eist.poll.pub.shared.User;

@RemoteServiceRelativePath("PushService")
public interface PushService extends RemoteService{
	public LecturePush getNotification(User user, int lastId) throws TimeoutException;
	public int getLastID() throws NoSuchElementException;
}
